/*
package kn.tool.exception;


import com.alibaba.fastjson.JSONObject;
import kn.tool.response.HttpResponse;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestControllerAdvice;

*/
/**
 * @author: dengkunnan
 * @date: 2020-07-12 18:11
 * @description:全局异常处理类
 **//*

@RestControllerAdvice
public class SpringGloabalException {
    @ExceptionHandler(Exception.class)
    @ResponseStatus(HttpStatus.OK)
    public JSONObject exceptionHandler(Exception exception) {
        System.out.println(">> 全局异常处理，异常信息如下：");
        exception.printStackTrace();
        return HttpResponse.error(exception.getMessage());
    }
}
*/
